package com.example.tuike.entity;

import com.example.tuike.common.SubscriptionStatus;
import com.example.tuike.common.UpdateFrequency;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/1/29 20:00

 * @Version 1.0*/
@Data
public class Subscription {
    private Integer subscriptionId;

    @NotNull(message = "用户ID不能为空")
    private Integer userId;

    @NotNull(message = "平台ID不能为空")
    private Integer feedId;

    private String  title;
    @NotNull
    private SubscriptionStatus status = SubscriptionStatus.ACTIVE;

    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}